/**
 * Created by chenyong on 2015/1/24.
 */


module.exports = function(app) {
    // 路由配置表

    app.use('/', require('./routes/index'));
    app.use('/probe', require('./routes/probe'));
    //app.use('/portfolio', require('./routes/portfolio'));
    app.use('/panos', require('./routes/pano'));
    app.use('/auth', require('./auth'));

    //app.use('/api/zhaofans', require('./routes/zhaofansapi'));
    app.use('/service', require('./service/index'));

    app.get('/case/peninsula-hotel', function(req, res){
        res.redirect('http://www.bigpixel.cn/panos/sh-waitan/');
    });
    app.get('/giga/bandao-hotel', function(req, res){
        res.redirect('http://www.bigpixel.cn/panos/sh-waitan/');
    });
};